Skip to content

quality: matrix cases get their tier base bound (part of #10497) - #10521

Merged
TrapsterDK merged 1 commit into
mainfrom
matrix-tier-base
Nov 10, 2026
Merged

TrapsterDK merged 1 commit into
mainfrom
matrix-tier-base

Conversation

@TrapsterDK

Copy link
Copy Markdown
Collaborator

Part of #10497

The matrix rule binds //quality/tiers/<dir>:standard for every case that runs a runner tier-base tool and binds no config itself (mirrors real_core.bzl). Fixes the 90 "reached the runner with no bound config" cases.

  • runner_matrix_tests.bzl: RUNNER_TIER_BASE_TOOLS (mirrors staging.rs), tier_base_tools/tier_bases attrs, binding in the impl, derivation in runner_matrix_suite.
  • biome: stage_native = True so the tier config is staged as biome.json (biome rejects standard.json); cli/generate/src/tools_gen.rs regenerated.
  • 12 goldens updated for tier severities/rules (stylelint, selene, credo, biome, pmd). matrix_elixir_lint_fail loses ModuleDoc (standard credo tier disables it) and still has a finding.
  • matrix_rego_lint_fail binds regal strict (standard ignores style); golden unchanged. matrix_json_format_pass uses a tab-formatted generated input; golden source path changed.

Tests: all 90 cases pass; //quality:all, //javascript/private/quality/..., //cli/generate:all, runner tests pass. Nested-Bazel and consumer tests not run.

Remaining for #10497: #10512, #10514, #10515, #10516, #10517.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

@TrapsterDK
TrapsterDK merged commit a836c70 into main Nov 10, 2026
1 check failed
@TrapsterDK
TrapsterDK deleted the matrix-tier-base branch November 10, 2026 07:48
@TrapsterDK

Copy link
Copy Markdown
Collaborator Author

Review: changes requested

  1. quality/testdata/matrix/matrix_lua_lint_syntax_error.expected.txt:8 (also matrix_lua_lint_fail.expected.txt:8, matrix_elixir_lint_syntax.expected.txt:8): syntax/parse errors flip from ERROR to WARNING. quality/tiers/selene/standard.toml is only std = "lua53+lua54" and is identical to the default quality/tools/lua/selene.toml that these cases ran with before, and TOOL_SEVERITIES in quality/adapter/src/severity_gen.rs is empty, so binding the tier base cannot change selene severities. A parse_error downgraded to WARNING looks like the golden recorded a wrong run, not intended behavior. Explain the source of the change or fix it; otherwise a regression that hides syntax errors is locked into the goldens.
  2. quality/testdata/matrix/matrix_json_lint_fail.expected.txt:8, matrix_jsx_lint_fail.expected.txt:8, matrix_tsx_lint_fail.expected.txt:8, matrix_typescript_lint_fail.expected.txt:8: biome severities flip in opposite directions (noDuplicateObjectKeys ERROR to WARNING, noUnusedVariables WARNING to ERROR) under a config that only sets recommended: true. Confirm this is real biome behavior with the staged biome.json, not a mis-staged config.
  3. quality/testdata/runner_matrix_tests.bzl:10: RUNNER_TIER_BASE_TOOLS is a hand-copied list of TIER_BASE_TOOLS in staging.rs. A tool added there without updating this list silently falls back to no bound config. Derive it or add a test that fails on drift.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Xut2hzLvRXZcoZvVp18RGd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant